from rest_framework import serializers

from six_it.models import Gathering, User


class EventdetailsSerializers(serializers.ModelSerializer):

    class Meta:
        model = Gathering

        fields = ['id', 'name', 'summary', 'detail',
                  'address', 'sponsor', 'image',
                  'city', 'state', 'starttime',
                  'endtime', 'endrolltime', 'users']
